package edu.uniquindio.prmaven.dataprovider;

import java.lang.reflect.Method;
import java.util.Map;

import org.testng.annotations.DataProvider;

import edu.uniquindio.prmaven.constants.ConfigurationConstants;
import edu.uniquindio.prmaven.general.LoadPropertiesUtil;

/**
 * 
 * @author DIANA
 *
 */

public class DataProviderFactory {
/**
 * 
 * @param testMethod
 * @return
 * @throws Exception
 */
	@DataProvider(name = ConfigurationConstants.DP_FACTORY)
	public static Object [][] createData(Method testMethod) throws Exception {
		Map<String, String> arguments = DataProviderUtils
				.resolveDataProviderArguments(testMethod);
		
		String hoja=arguments.get(ConfigurationConstants.ESCENARIO);
		
		String rutaArchivo=LoadPropertiesUtil.getInstance()
				.getProperty(ConfigurationConstants.DATA_SOURCE);
		// to - do invocacion a excel
	
		String [][] data= new String [0][0];
		
		return data;
	}
}